import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import file from './modules/file'
Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    // breadCrumbs: [
    //   {
    //     'id': 0,
    //     'name': '备份盘'
    //   }
    // ],
    // folderList:[],
  },
  mutations: {
    // /**
    //  * vuex点击插入面包屑
    //  * @param id
    //  * @param name
    //  */
    // pushBreadCrumps(state, {id, name}) {
    //   state.breadCrumbs.push({'id': id,'name': name})
    // },
    // getFolderList(state,folderList){
    //   state.folderList.push(folderList)
    // }
  },
  modules: {
    app,
    settings,
    user,
    file
  },
  getters
})

export default store
